/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Front.Vista;

import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author guzmle
 */
public class Cell_RendererLabel implements TableCellRenderer{
        @Override
        public Component getTableCellRendererComponent(JTable arg0,
                Object arg1, boolean arg2, boolean arg3, int arg4, int arg5) {
            try{
                JLabel l = (JLabel)arg1;
                l.setHorizontalAlignment(SwingConstants.CENTER); 
            return l;
            }catch (Exception e) {}
         return (JLabel)arg1;
        }
}
